//
//  InputValidator.h
//  策略模式
//
//  Created by YuanJiang on 2019/9/5.
//  Copyright © 2019 llbt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface InputValidator : NSObject

//return 为yes 表示通过，为no表示不通过
-(BOOL)validateIput:(UITextField *)tf;

//测试不通过的时候，读取errorMessage
@property(nonatomic,strong) NSString *errorMessage;

@end

NS_ASSUME_NONNULL_END
